﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"	
	xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"	
	mc:Ignorable="d"
	x:Class="StoryDesigner.LoginScreen"
	d:DesignWidth="1024" d:DesignHeight="768">
	<UserControl.Resources>
		<DropShadowEffect x:Key="DefaultShadow" BlurRadius="10" Direction="245" ShadowDepth="3" Opacity="0.5"/>
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="DefaultStates">
				<VisualState x:Name="Normal"/>
				<VisualState x:Name="Busy">
					<Storyboard>
						<DoubleAnimation Duration="0" To="10" Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
							<DiscreteObjectKeyFrame KeyTime="0">
								<DiscreteObjectKeyFrame.Value>
									<Visibility>Visible</Visibility>
								</DiscreteObjectKeyFrame.Value>
							</DiscreteObjectKeyFrame>
						</ObjectAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<Grid x:Name="scrnLogin" Background="White">
			<Border HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="10" BorderThickness="2" Padding="5" Width="500" Height="200" Effect="{StaticResource DefaultShadow}">
				<Grid x:Name="grid" Margin="10">
					<Grid.Effect>
						<BlurEffect Radius="0"/>
					</Grid.Effect>
					<Grid.RowDefinitions>
						<RowDefinition Height="32"/>
						<RowDefinition Height="32"/>
						<RowDefinition Height="32"/>
						<RowDefinition Height="32"/>
						<RowDefinition Height="32"/>
						<RowDefinition/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="75"/>
						<ColumnDefinition/>
					</Grid.ColumnDefinitions>
					<TextBlock Text="EMail:" TextWrapping="Wrap" d:LayoutOverrides="Width" VerticalAlignment="Center" Grid.Row="2" Opacity="0.75" FontSize="10.667" Foreground="Black"/>
					<TextBlock Text="Password:" TextWrapping="Wrap" d:LayoutOverrides="Width, Height" Grid.Row="3" VerticalAlignment="Center" Opacity="0.75" FontSize="10.667" Foreground="Black"/>
					<TextBox x:Name="txtLogin" TextWrapping="Wrap" d:LayoutOverrides="Width, Height" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" Opacity="0.75" FontSize="10.667"/>
					<PasswordBox x:Name="txtPassword" Grid.Column="1" Grid.Row="3" Opacity="0.75" FontSize="10.667" VerticalAlignment="Center"/>
					<TextBlock VerticalAlignment="Top" Text="Login to The Game :: Story Designer" TextWrapping="Wrap" d:LayoutOverrides="Width" FontSize="22" Grid.ColumnSpan="2" UseLayoutRounding="False" Margin="0,0.5,0,0" Foreground="White"/>
					<StackPanel Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" Orientation="Horizontal">
						<Button x:Name="btnLoginOK" Width="150" Content="Login" Height="24" Margin="0" Click="BtnLoginOkClick" FontSize="10.667"/>
					</StackPanel>
				</Grid>
			</Border>
			<Border x:Name="border" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="10" BorderThickness="2" Padding="5" Width="500" Height="400" Opacity="0.5" Visibility="Collapsed" Background="Black">
				<ProgressBar Height="24" Margin="10,0" IsIndeterminate="True"/>
			</Border>
		</Grid>
	</Grid>
</UserControl>